package cn.iocoder.yudao.module.resource.api;

import cn.iocoder.yudao.module.resource.api.enums.UserTimeTransactionTypeEnum;

public interface IUserTimeManagerApi {

    void purchaseTime(Long userId, UserTimeTransactionTypeEnum transactionType, Long orderId, Long timeMs);

    boolean consumeTime(Long userId, String gameMatchId, Integer roleId, String roleName, Long timeMs);

}
